package com.echat.messagesender.sender.email.bean;

import com.echat.messagesender.sender.model.PlatformAccount;
import lombok.Getter;
import lombok.Setter;

import java.util.Properties;

/**
 * Created by chenmohan on 2018/08/14
 *
 * @description
 */
@Getter
@Setter
public class EmailConfig {

    private int sort;
    private String name = null;
    private String rainbowredPopHost = null;
    private String rainbowredSmtpHost = null;
    private String rainbowredEmail = null;
    private String rainbowredPassowrd = null;
    private String popHost = null;
    private String smtpHost = null;
    private String email = null;
    private String password = null;
    private String emailName = null;
    private Properties configProperties = null;
    private String folderName = null;
    private boolean SSLOnConnect = false;
    private int smtpPort;
    private String sslSmtpPort;
    private boolean startTLSEnabled;
    private boolean startTLSRequired;
    private String senderAddress;
    private String rainbowredSenderAddress;
    private String senderNickName;
    private String rainbowredSenderNickName;
    private String accessKey;
    private String accessSecret;
    private String emailTag;
    private String regionId;

    // [SendCloud]普通邮件发送
    private  String sendApi;
    // [SendCloud]地址列表发送
    private  String sendTemplateApi;
    // [SendCloud]短信发送
    private  String sendSmsApi;
    // [SendCloud]语音发送
    private  String sendVoiceApi;
    // [SendCloud]邮件user
    private  String apiUser;
    // [SendCloud]邮件key
    private  String apiKey;

    /** 平台id {@link PlatformAccount} */
    private Long platformAccountId;

    /** 平台名称 {@link PlatformAccount} */
    private String platformName;

    @Override
    public String toString() {
        return "EmailConfig{" +
                "sort=" + sort +
                ", platformAccountId='" + platformAccountId + '\'' +
                '}';
    }


}
